package org.smi.answer;

import lombok.Data;

import java.util.List;

@Data
public class AnswerModule {

    public int error_code;
    public String error_message;
    public String trace_id;
    public Data data;

    @lombok.Data
    public static class Data {
        public ExamResultInfo exam_result_info;
        public List<Question> questions;
    }
    @lombok.Data
    public static class ExamResultInfo {
        public int exam_instance_id;
        public String exam_instance_name;
        public String user_id;
        public String user_name;
        public int pass_status;
        public int current_score;
        public int highest_score;
        public int history_pass_status;
        public String extra;
        public int show_score;
    }
    @lombok.Data
    public static class Question {
        public int id;
        public int category_id;
        public String category_name;
        public String uname;
        public int question_type;
        public String subject;
        public int org_id;
        public String create_time;
        public String update_time;
        public String uid;
        public Content content;
        public String qid;
        public String invalid_content;
        public List<Integer> category_path;
    }
    @lombok.Data
    public static class Content {
        public int type;
        public Subject subject;
        public int difficulty;
        public int score;
        public String qid;
        public Data2 data;
        public int position;
    }
    @lombok.Data
    public static class Subject {
        public String txt;
        public int position;
    }
    @lombok.Data
    public static class Data2 {
        public Multiple multiple;
        public Single single;
        public int position;
    }
    @lombok.Data
    public static class Multiple {
        public List<Option> options;
        public List<Integer> answer;
        public String analysis;
        public String points;
        public List<Integer> user_answer;
    }
    @lombok.Data
    public static class Option {
        public String txt;
        public int position;
    }
    @lombok.Data
    public static class Single {
        public List<Option> options;
        public int answer;
        public String analysis;
        public String points;
        public int user_answer;
    }
}

